<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="application/javascript" charset="utf-8">
        /**
         * js中的数组类似java中的map容器，长度可随意改变，元素类型任意
         */
        var arr = [new Date(),false];
        arr.push(1,2,true);
        var obj = arr.pop();
        alert(arr);
        alert(obj);
    </script>
</head>
<body>
</body>
</html>